package com.br.dominio;

import java.util.ArrayList;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.view.View;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class Ponto extends ItemizedOverlay<OverlayItem>{  
	
	private ArrayList<OverlayItem> pontos = new ArrayList<OverlayItem>();
	private Context c;

	public Ponto(Drawable defaultMaker) {
		super(boundCenter(defaultMaker));
		// TODO Auto-generated constructor stub
	}

	public Ponto(Drawable m, Context contexto) {
		this(m);
		c = contexto;
		// TODO Auto-generated constructor stub
	}
	
	@Override
	protected OverlayItem createItem(int i) {
		// TODO Auto-generated method stub
		return pontos.get(i);
	}

	@Override
	public int size() {
		// TODO Auto-generated method stub
		return pontos.size();
	}

	public void inserirPontos(OverlayItem item){
		pontos.add(item);
		this.populate();
	}
	
}
